// 接口请求参数类型定义
export interface GraphNeo4jParams {
  industryName: string; // 行业名称
  topK?: number; // 图谱topK关键词
  limit?: number; // 限制数量
  maxLevel?: number; // 最大层级
}

export interface RetreiveGraphNeo4jParams {
  original_ids: string; // 原始id
  limit?: number; // 限制数量
  maxLevel?: number; // 最大层级
}

// 接口响应类型定义
export interface Relationship {
  name: string;
  nodeId: string;
  source: string;
  sourceID: string;
  sourceNodeCategory: string;
  target: string;
  targetID: string;
  targetNodeCategory: string;
  value: number; // 边的权重
}

export interface Node {
  name: string;
  description: string;
  category: string;
  nodeId: string;
  value: number;
  totalDegrees: number;
  _id_elasticsearch: null | string;
  _index_elasticsearch: null | string;
}

export interface TopK {
  name: string;
  nodeId: string;
  totalDegrees: number;
}

export interface GraphNeo4jResponse {
  total: number;
  nodes: Node[];
  relationships: Relationship[];
  topK?: TopK[];
}
